package com.example.medical.mapper;
import com.example.medical.domain.EquipmentPurchase;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

@Mapper
public interface EquipmentPurchaseMapper {
    // 获取指定日期的器械购买数量统计
    int getPurchaseCount(String purchaseDate);

    // 获取热门购买器械，根据购买数量降序获取指定数量的器械列表，通过limit参数指定数量
    List<EquipmentPurchase> getHotEquipment(@Param("limit") int limit);

}